package com.longbig.multifunction.convert;


import com.longbig.multifunction.dto.*;
import com.longbig.multifunction.service.ProjectPowerInfo;
import org.apache.commons.compress.utils.Lists;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author Administrator
 * @date 2024/3/21 15:48
 * @description
 */
@Mapper(componentModel = "spring")
public abstract class SwitchConvert {

    @Mappings({
            @Mapping(target = "ownerType", ignore = true),
            @Mapping(target = "gridDate", ignore = true),
            @Mapping(target = "subsidyProject", ignore = true),
            @Mapping(target = "projectStatus", ignore = true)
    })
    public abstract GecProjectRegInfoDO GecProjectRegInfo2DO(ProjectInfo gecProjectRegInfo);


    @Mappings({
            @Mapping(target = "checked", ignore = true),
            @Mapping(target = "pushStatus", ignore = true),
            @Mapping(target = "approve", ignore = true),
            @Mapping(target = "declareDataType", ignore = true),
            @Mapping(target = "updateTime", ignore = true),
            @Mapping(target = "createTime", ignore = true),
            @Mapping(target = "remark", ignore = true)
    })
    public abstract ProjectPowerInfoDO powerInfo2DO(ProjectPowerInfo projectPowerInfo);

    public abstract GecProjectFirstCheckBindDO checkBindDO2(CheckBindDTO checkBindDTO);

    @Mappings({
            @Mapping(target = "companyType", ignore = true)
    })
    public abstract GecAccountInfoDO accountInfo2DO(GecAccountInfo gecAccountInfo);

}
